<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>测试导航栏</title>
		<link rel="stylesheet" href="css/bootstrap.css" />
		<link rel="stylesheet" href="css/statistics.css">
		<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
		<script src="js/jquery-3.1.1.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/highcharts.js"></script>
		<script src="js/highcharts-more.js"></script>
		<script src="js/data.js"></script>

		<script type="text/javascript">
			function showMessage(content) {
				var jsonString = '{"name":"xubohao","age":"24","sex":"man"}';
				var obj = JSON.parse(jsonString);
				document.getElementById("myFirstJavaToJs").innerHTML = content + obj.name;

			}

			function sendMessage() {
				document.location = "js://baidu123?type=123";
			}
		</script>
	</head>

	<!--	<body onload="javascript:contact.showM()">-->

	<body onload="sendMessage()">
		<div>
			<nav class="navbar navbar-default" role="navigation">
				<div class="container-fluid">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
	                    <span class="sr-only">Toggle navigation</span>
	                    <span class="icon-bar"></span>
	                    <span class="icon-bar"></span>
	                    <span class="icon-bar"></span>
                	</button>
						<a class="navbar-brand" href="#">报表</a>
					</div>

					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li>
								<a href="#">选项1</a>
							</li>
							<li>
								<a href="#">选项2</a>
							</li>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">下拉选项1 <span class="caret"></span></a>
								<ul class="dropdown-menu" role="menu">
									<li>
										<a href="#">操作1</a>
									</li>
									<li>
										<a href="#">另一个操作</a>
									</li>
									<li>
										<a href="#">其他的事务</a>
									</li>
									<li class="divider"></li>
									<li>
										<a href="#">分开的选项</a>
									</li>
									<li class="divider"></li>
									<li>
										<a href="#">另一个分开的选项</a>
									</li>
								</ul>
							</li>
						</ul>
						<form class="navbar-form navbar-left" role="search">
							<div class="form-group">
								<input type="text" class="form-control" placeholder="搜索">
							</div>
							<button type="submit" class="btn btn-default">提交</button>
						</form>
						<ul class="nav navbar-nav navbar-right">
							<li>
								<a href="#">Link</a>
							</li>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
								<ul class="dropdown-menu" role="menu">
									<li>
										<a href="#">Action</a>
									</li>
									<li>
										<a href="#">Another action</a>
									</li>
									<li>
										<a href="#">Something else here</a>
									</li>
									<li class="divider"></li>
									<li>
										<a href="#">Separated link</a>
									</li>
								</ul>
							</li>
						</ul>
					</div>
					<!-- /.navbar-collapse -->
				</div>
				<!-- /.container-fluid -->
			</nav>

			<!--<div class="jumbotron">
        <p>集散中心第一季度报表</p>
    </div>-->
			<div class="panel panel-default">
				<div class="panel-body">
					<div class="statistics-title">总收入:</div>
					<div class="statistics-second">总支出:</div>
					<div id="myFirstJavaToJs"></div>
				</div>
			</div>

			<div id="container" style="height: 80%">
				<script language="JavaScript">
					//					$(window).resize(function() {
					//						chart.setSize(
					//							$(document).width(),
					//							$(document).height() / 1.5,
					//							false
					//						);
					//					});
					$(document).ready(function() {

						var chart = new Highcharts.Chart({

							chart: {
								type: 'line',
								renderTo: container,
								spacingTop: 3,
								spacingRight: 0,
								spacingBottom: 3,
								spacingLeft: 0
							},
							yAxis: {
								title: {
									text: ''
								}
							},

							title: {
								text: '集散中心第一季度报表'
							},

							credits: {
								enabled: false
							},

							data: {
								columns: [
									[null, '1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月'], // categories
									['收入', 5090, 6000, 8000, 6874, 4000, 5232.1, 4232.1, 7232.1, 5232.1, 5232.1], // first series
									['支出', 2258, 4200, 6000, 4232.21, 3000, 4254, 3254, 6254, 3254, 4254] // second series
								]
							}
						});
					});
				</script>
			</div>

		</div>

	</body>

</html>